package com.lwm.controller;

import com.lwm.domain.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@Slf4j
public class HelloController {

    @RequestMapping("/hello")
    public ResponseResult<Object> hello() {
        log.info("你干嘛~~哎呦喂，鸡你太美");
        HashMap<String, String> map = new HashMap<>();
        map.put("message", "Hello,World ಥ_ಥ");
        return new ResponseResult<>(200, "请求成功", map);
    }
}
